# -*- coding:utf-8 -*-

from fastapi import Depends
from app.repository.user import UserRepository
from app.repository.role import RoleRepository
from app.repository.permision import PermisionRepository
from app.repository.topic import TopicRepository, TagRepository, AttachmentRepository

def get_user_repo(repo=Depends(UserRepository)):
    return repo

def get_role_repo(repo=Depends(RoleRepository)):
    return repo

def get_permision_repo(repo=Depends(PermisionRepository)):
    return repo

def get_topic_repo(repo=Depends(TopicRepository)):
    return repo

def get_tag_repo(repo=Depends(TagRepository)):
    return repo

def get_attachment_repo(repo=Depends(AttachmentRepository)):
    return repo
